<?php get_header(); ?>

<div class="inner cf">
	<?php get_sidebar(); ?>
	<main id="main" class="site-main" role="main">
		<h1 class="page-title">最近更新</h1>
		<?php if ( have_posts() ) : ?>
		<div class="post-list">
		<?php
			while ( have_posts() ) : the_post();
				get_template_part( 'parts/content', get_post_format() );
			endwhile;
			the_posts_pagination( array(
				'prev_text' => '&lt;<span class="screen-reader-text">上一页</span>',
				'next_text' => '<span class="screen-reader-text">下一页</span>&gt;',
				'before_page_number' => '<span class="meta-nav screen-reader-text">页码 </span>',
			) );
		?>
		</div>
		<?php
		else :
			get_template_part( 'parts/post/content', 'none' );
		endif;
		?>
			</div>
	</main><!-- #main -->
</div><!-- .wrap -->

<?php get_footer();
